package com.after.saas.user.manager.impl;

import com.after.saas.common.model.query.UserQuery;
import com.after.saas.user.manager.UserManager;
import com.after.saas.user.mapper.UserMapper;
import com.after.saas.common.model.vo.UserVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Classname UserManagerImpl
 * @Description TODO
 * @auth after
 * @since 2021/7/24 20:52
 */

@Slf4j
@Service
public class UserManagerImpl implements UserManager {

    private final UserMapper userMapper;

    public UserManagerImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public UserVO findOne(UserQuery query) {
        return userMapper.findOne(query);
    }
}
